﻿<phone:PhoneApplicationPage 
    x:Class="SverigesRadio.SverigesRadioApp.WindowsPhoneApplication.Views.BroadcastInformation"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" 
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" 
    xmlns:my="clr-namespace:SverigesRadio.SverigesRadioApp.WindowsPhoneApplication.Controls" xmlns:Converters="clr-namespace:SverigesRadio.SverigesRadioApp.WindowsPhoneApplication.Converters" xmlns:ApplicationBar="clr-namespace:SverigesRadio.SverigesRadioApp.WindowsPhoneApplication.Controls.ApplicationBar" FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">


    <toolkit:TransitionService.NavigationInTransition>
        <toolkit:NavigationInTransition>
            <toolkit:NavigationInTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardIn"/>
            </toolkit:NavigationInTransition.Backward>
            <toolkit:NavigationInTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardIn"/>
            </toolkit:NavigationInTransition.Forward>
        </toolkit:NavigationInTransition>
    </toolkit:TransitionService.NavigationInTransition>
    <toolkit:TransitionService.NavigationOutTransition>
        <toolkit:NavigationOutTransition>
            <toolkit:NavigationOutTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardOut"/>
            </toolkit:NavigationOutTransition.Backward>
            <toolkit:NavigationOutTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardOut"/>
            </toolkit:NavigationOutTransition.Forward>
        </toolkit:NavigationOutTransition>
    </toolkit:TransitionService.NavigationOutTransition>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">

        <Grid.Resources>
            <Converters:InvertVisibilityConverter x:Key="InvertVisibilityConverter" />
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <Image Grid.Row="0" Visibility="{Binding ParentViewModel.DarkThemeVisibility}" Source="/SverigesRadio.SverigesRadioApp.WindowsPhoneApplication;component/Images/Sveriges_Radio_Logotype_Black.png" Height="50" />
        <Image Grid.Row="0" Visibility="{Binding ParentViewModel.DarkThemeVisibility, Converter={StaticResource InvertVisibilityConverter}}" Source="/SverigesRadio.SverigesRadioApp.WindowsPhoneApplication;component/Images/Sveriges_Radio_Logotype_White.png" Height="50" />


        <controls:Pivot Grid.Row="2">
            <controls:PivotItem Header="Sändning">

   
            </controls:PivotItem>
        </controls:Pivot>

        <ApplicationBar:BindableApplicationBar Mode="Default" IsVisible="True">
            <ApplicationBar:BindableApplicationBarIconButton Command="{Binding NavigateToFavouritesCommand}"  Text="Favourit" IconUri="/images/AddFavourite.png" />
            <ApplicationBar:BindableApplicationBarIconButton Command="{Binding PlayDirectCommand}" Text="Spela" IconUri="/images/DirectBroadcast.png" />

            <ApplicationBar:BindableApplicationBarMenuItem Text="Besök hemsida" Command="{Binding VisitHomePageCommand}"/>

        </ApplicationBar:BindableApplicationBar>
    </Grid>

</phone:PhoneApplicationPage>
